package org.jix.gbook.kv.biz.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import org.jix.framework.common.exception.BaseExceptionInterface;

/**
 * @author stark
 * @date 2025/7/22 12:11
 * @description 异常枚举类
 **/
@Getter
@AllArgsConstructor
public enum ResponseCodeEnum implements BaseExceptionInterface {
    // ----------- 通用异常状态码 -----------
    SYSTEM_ERROR("KV-10000", "网络异常，请检查网络配置..."),
    PARAM_NOT_VALID("KV-10001", "参数错误"),

    // ----------- 业务异常状态码 -----------
    NOTE_CONTENT_NOT_FOUND("KV-20000", "该笔记内容不存在"),
    ;

    // 异常码
    private final String errorCode;
    // 错误信息
    private final String errorMessage;
}
